<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <!--引入Vue-->
    <script src="./js/axios.min.js"></script>
    <script src="../js/vue.js"></script>
    <title></title>

</head>

<body>
    <div id="root">

    </div>

    <script>

    </script>

    <script>
        var vm = new Vue({
            el: '#root',
            data: {

            },
            beforeCreate() {
                axios.get('http://127.0.0.1:3000/api/appliance/list')
                    .then((res) => {
                        console.log(res);
                    })
            }
        })
    </script>
</body>

</html>